//
//  YSProductDetailBannerView.h
//  Yueshi
//
//  Created by Northwan on 15/7/22.
//  Copyright (c) 2015年 悦食中国. All rights reserved.
//

#import <UIKit/UIKit.h>

@protocol YSProductDetailBannerViewDelegate <NSObject>
@optional
-(void)bannerItemClick:(NSInteger)tag;
@end

@interface YSProductDetailBannerView : UIView
@property (weak, nonatomic)id<YSProductDetailBannerViewDelegate> delegate;
@property (strong,nonatomic)NSArray *banner;
@end

/*
 NSInteger count =  _photosView.count;
 // 1.封装图片数据
 NSMutableArray *photos = [NSMutableArray arrayWithCapacity:count];
 for (int i = 0; i<count; i++) {
 MJPhoto *photo = [[MJPhoto alloc] init];
 photo.url = [NSURL URLWithString:_photos[i]]; // 图片路径
 photo.srcImageView = self.photosView[i]; // 来源于哪个UIImageView
 [photos addObject:photo];
 }
 
 // 2.显示相册
 MJPhotoBrowser *browser = [[MJPhotoBrowser alloc] init];
 browser.currentPhotoIndex = sender.view.tag; // 弹出相册时显示的第一张图片是？
 browser.photos = photos; // 设置所有的图片
 [browser show];
*/
